import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions'
import getters from './getters'
import mutations from './mutations'
import user from './modules/user'
import setting from './modules/setting'
Vue.use(Vuex)

const initPlugin = store => {
}

const store = new Vuex.Store({
  modules: {
    user,
    setting
  },
  state: { },
  plugins: [initPlugin],
  actions,
  mutations,
  getters
})

export default store
